﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using EventBroker;

namespace Algorithm
{
    /// <summary>
    /// Concrete class that implements the parsing algorithm for a website
    /// </summary>
    public class CParserConcreteProduct_AffinBank : CParserAbstractProduct
    {        
        /// <summary>
        /// Constructor
        /// </summary>
        public CParserConcreteProduct_AffinBank()
        {

        }

        /// <summary>
        /// Method that implements the algorithm to parse the crawled information of a website
        /// </summary>
        [CEventSubscription("Topic:AffinBank_ProductA_ParseAsync", Thread = EThreadOption.Background, WorkItemGroupName = "AffinBank_ProductA_ParseAsync")]
        public void ProductA_ParseAsync(object objSender_p, EventArgs eventArgs_p)
        {
            System.Diagnostics.Debug.WriteLine("In AffinBank_ProductA_ParseAsync");

            //Start your parsing code here
        }

        /// <summary>
        /// Method that implements the algorithm to parse the crawled information of a website
        /// </summary>
        [CEventSubscription("Topic:AffinBank_ProductB_ParseAsync", Thread = EThreadOption.Background, WorkItemGroupName = "AffinBank_ProductB_ParseAsync")]
        public void ProductB_ParseAsync(object objSender_p, EventArgs eventArgs_p)
        {
            System.Diagnostics.Debug.WriteLine("In AffinBank_ProductB_ParseAsync");

            //Start your parsing code here
        }
    }
}
